package com.sservice.urp.dao;


import com.sservice.urp.entity.UserRole;

import java.util.List;

public interface IUserRoleDao {

    int deleteByPrimaryKey(UserRole key);

    int deleteByUserId(Integer userid);

    /**
     * 根据role_id 统计
     *
     * @param userid
     * @return
     */
    int queryByRoleId(UserRole userid);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    int addBatch(List<UserRole> list);

}